package com.wn.demo01;

/**
 * @author yellow Docter
 * @date 2024-07-24
 * @desc 蜗牛创想：www.woniuxy.com
 *   继承Thread，重写 run ，基于匿名内部类*
 */
public class Demo03 {

    public static void main(String[] args) {

        //匿名内部类的方式写
        Thread thread = new Thread(){
            @Override
            public void run() {
                System.out.println("Demo03.run");
            }
        };

        thread.start();

    }

}
